//
//  Product_Main_TableViewCell.m
//  Pacific_Computer
//
//  Created by dlios on 14-12-17.
//  Copyright (c) 2014年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "Product_Main_TableViewCell.h"

@implementation Product_Main_TableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.titleLabel = [[UILabel alloc] init];
        self.titleLabel.font = [UIFont systemFontOfSize:18];
        [self.contentView addSubview:self.titleLabel];
        [_titleLabel release];
        
        self.brandLabel = [[UILabel alloc] init];
        self.brandLabel.font = [UIFont systemFontOfSize:14];
        [self.contentView addSubview:self.brandLabel];
        [_brandLabel release];
        
        self.myImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.myImageView];
        [_myImageView release];
        
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.myImageView.frame = CGRectMake(self.contentView.bounds.size.width * 10.66 / 100, self.contentView.bounds.size.height * 16.12 / 100, self.contentView.bounds.size.width * 16.53 / 100, self.contentView.bounds.size.height * 66.66 / 100);
    
    self.titleLabel.frame = CGRectMake(self.contentView.bounds.size.width * 32 / 100, self.contentView.bounds.size.height * 21.5 / 100, self.contentView.bounds.size.width * 26.66 / 100, self.contentView.bounds.size.height * 32.25 / 100);
    
    self.brandLabel.frame = CGRectMake(self.contentView.bounds.size.width * 32 / 100, self.contentView.bounds.size.height * 53.76 / 100, self.contentView.bounds.size.width * 2 / 5, self.contentView.bounds.size.height * 21.5 / 100);
}


- (void)dealloc
{
    [_titleLabel release];
    [_brandLabel release];
    [_myImageView release];
    [super dealloc];
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
